package com.muki.succ.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.muki.succ.web.service.UriService;

@RestController
public class UriController {

	@Autowired UriService uriService;
	
//	@RequestMapping(value="urls",method=RequestMethod.POST)
//	public List<String> getUrls(String topic) {
//		return uriService.getAlls(topic);
//	}
	
	@RequestMapping(value="start_url")
	public boolean registeryStartUri(@RequestParam("topic")String topic,@RequestParam("url")String url) {
		return uriService.registeryStartUri(topic, url);
	}
	
//	@RequestMapping(value="cpl_url",method=RequestMethod.POST)
//	public int getSize(String topic) {
//		return uriService.complete(topic);
//	}
}
